/*
 * 307A.cpp
 *
 *  Created on: May 27, 2013
 *      Author: luonghoaixuan
 */
#include <iostream>
using namespace std;

int n, k;
void solve() {
	cin >> n >> k;
	if (n*(n-1)/2 <= k) {
		cout << "no solution" << endl;
	}
	else {
		for (int i=0;i<n;++i) {
			cout << "0 " << i << endl;
		}
	}
}

/*int main() {
	solve();
	return 0;
}*/




